<?php
require __DIR__ . '/../vendor/autoload.php';

use Swoole\OpenAi\OpenAi;

$env = parse_ini_file('.env');
//var_dump($env['API_KEY']);exit();

$open_ai = new OpenAi($env['API_KEY']);
$open_ai->setBaseURL('https://chat.swoole.com');
$complete = $open_ai->listModels();
var_dump($complete);

echo '==== OVER ====' . PHP_EOL;

